package com.wpp.register.converter;

import com.wpp.register.ServerInfo;

/**
 * @Classname ServerInfoConvert
 * @Description
 * @Date 2020/12/7 22:57
 * @Created by wpp25
 */
public class ServerInfoConvert {

    public static ServerInfo convert(String serverStr) {
        String[] split = serverStr.split(":");
        ServerInfo serverInfo = new ServerInfo(split[0],Integer.parseInt(split[1]));
        return serverInfo;
    }
}
